﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IMIForUnity
{
    public class ImiGestureEventHandler
    {
        private static object obj = new object();

        private static ImiGestureEventHandler handler = null;
        public static ImiGestureEventHandler getInstance()
        {
            if(handler == null)
                lock (obj)
                {
                    if (handler == null)
                        handler = new ImiGestureEventHandler();
                }
            return handler;
        }

        private ImiGestureEventHandler() { }

        public void BackToHomeEvent(ImiGesture g, ImiPlayerInfo player, GestureEvent ge)
        {
            Log.d("Back to home");
        }

        public void CalibrationEvent(ImiGesture g, ImiPlayerInfo player, GestureEvent ge)
        {
            Log.d("Calibration");
        }

        public void RaiseRightHandEvent(ImiGesture g, ImiPlayerInfo player, GestureEvent ge)
        {
            Log.d("Raise right hand!");
        }

        public void RaiseLeftHandEvent(ImiGesture g, ImiPlayerInfo player, GestureEvent ge)
        {
            Log.d("Raise left Hand!");
        }

        public void JumpEvent(ImiGesture g, ImiPlayerInfo player, GestureEvent ge)
        {
            Log.d("Jump");
        }

        public void RunEvent(ImiGesture g, ImiPlayerInfo player, GestureEvent ge)
        {
            Log.d("Run");
        }

        public void RightHandWave(ImiGesture g, ImiPlayerInfo player, GestureEvent ge)
        {
            Log.d("Right hand waves!");
        }

        public void LeftHandWaveLeft(ImiGesture g, ImiPlayerInfo player, GestureEvent ge)
        {
            Log.d("Left hand waves left");
        }

        public void LeftHandWaveRight(ImiGesture g, ImiPlayerInfo player, GestureEvent ge)
        {
            Log.d("Left hand waves right");
        }

        public void RightHandWaveLeft(ImiGesture g, ImiPlayerInfo player, GestureEvent ge)
        {
            Log.d("Right hand waves left");
        }

        public void RightHandWaveRight(ImiGesture g, ImiPlayerInfo player, GestureEvent ge)
        {
            Log.d("Right hand waves right");
        }

        public void LeftHandPush(ImiGesture g, ImiPlayerInfo player, GestureEvent ge)
        {
            Log.d("Left hand push");
        }

        public void RightHandPush(ImiGesture g, ImiPlayerInfo player, GestureEvent ge)
        {
            Log.d("right hand push!");
        }
    }
}
